{{$path := .Path}}
<div class="ym-cbox">
    <h1 class="content-subhead">项目列表</h1>

    <!-- A single blog post -->
    <section class="post">
        <header class="post-header">
            <h2 class="post-title">{{.Website}}</h2>

            <form method="put" action="{{$path}}/add" id="put">
                <button type="submit" id="add" value="新增" name="add">新增</button>
            </form>
            <p class="post-meta">
                By <a href="{{.Email}}" class="post-author">{{.Email}}</a> under <a
                    class="post-category post-category-design" href="#">CSS</a> <a
                    class="post-category post-category-pure" href="#">Pure</a>
            </p>
        </header>

        <div class="post-description">
            {{range .Models}}
            <p>
                <img class="post-avatar"
                     alt="{{.Object.Name}}" src="{{.Thumbnail}}"
                     height="48" width="48">
                {{.Object.Name}} <a href="{{$path}}/{{.Object.Id}}">查看</a>
                <a href="{{$path}}/{{.Object.Id}}?type=edit">编辑</a>
            </p>
            {{end}}
        </div>
    </section>
</div>